import requests from "./request";

//首页页面相关接口
// 获取地图各省份服务资源分布
export const reqMap = () =>
  requests.get("/service/statistics/mapResource", {
    params: {
      pageNum: 1,
      pageSize: 10,
    },
  });


// 调度页面相关接口
// 获取需求列表
export const reqRequirements = (data) =>
  requests.get("/dispatch/getRequirements", {
    params: data,
  });

// 获取服务资源列表
export const reqServiceResources = () =>
  requests.get("/dispatch/getServiceResources");


// 响应需求
export const reqResponseRequirements = (data) =>
  requests.post("/dispatch/responseRequirements", data);
